package net.example.lesson3.proxy;

/**
 * 需要动态代理的接口
 *
 * @author 肖红亮
 * @version 1.0.0.0
 * @since JDK1.8
 */
public interface Speak {

    default void SayHello(String name) {
        System.out.println(String.format("hello, %s", name));
    }

    default void SayGoodBye(String name) {
        System.out.println(String.format("good bye, %s", name));
    }
}
